<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        * {
            padding:0;
            margin:0;
        }
		a {
			text-decoration:none;
		}
        #index_header {
            width:100%;
			height:60px;
			background:#333;
        }
        #index_header_left {
            float:left;
        }
        #header_logo {
            width:260px;
            text-align:center;
            display:block;
            height:100%;
            line-height:60px;
            font-size:25px;
            color:#fff;
			font-weight:700;
            background-color:#f44336;
        }
		#index_header_right {
			float:right;
			height:50px;
            padding:5px 0;
			padding-right:20px;
		}
		#login_admin >div {
			float:left;
			height:100%;
			margin-left:10px;
		}
		#login_admin_head {
            width: 50px;
            border-radius: 50%;
            background-size: 100%;
            background-position: center;
        }
		#login_admin_info {
			height:50px;
		}
		#login_admin_info >a {
			display:block;
			margin-bottom:5px;
		}
		#login_admin_name {
			font-size:16px;
            font-weight:700;
			color:#fff;
		}
		#logout {
			font-size:14px;
			color:#ccc;
		}
		#logout:hover {
			color:#fff;
			text-decoration:underline;
		}
    </style>
</head>
<body>
    <#if !loginAdmin??>
    <script>
        window.location.href="${request.contextPath}/"
    </script>
    </#if>
    <div id="index_header">
        <div id="index_header_left">
            <a href="#" id="header_logo">
                RenRen Repair
            </a>
        </div>
		<div id="index_header_right">
			<div href="#" id="login_admin">
				<div id="login_admin_head" style="background-image: url(${request.contextPath}/images/userheads/Mei.jpg);">
				</div>
				<div id="login_admin_info">
					<a href="#" id="login_admin_name">
                        <#if loginAdmin??>
                            ${Session.loginAdmin.username}
                        </#if>
                    </a>
					<a href="${request.contextPath}/logout" id="logout">退出登录</a>
				</div>
			</div>
		</div>
		<div style="clear:both"></div>
    </div>
</body>
</html>